<include file="./Tpl/Home/top.html"/>
<include file="./Tpl/Home/header.html" />
<!--交易页面的子导航区-->
<include file="./Tpl/Home/user_nav.html" />

<div class="container">
<!--全站交易记录-->
<div class="trade-part trade-part-hd mt20">
  <div class="trade-hd">
        <h5><i class="icon_condition"></i>我的邀请</h5>
  </div>
  <div class="md">
	<div class="my-grid" id="order-grid">
		<div class="invit_info">
		    <p style="font-size:15px;height:40px;">我的邀请人数：<strong>{$invitnum}</strong> 人</p>
		    <p class="invit_tit">我的邀请链接</p>
		    <input type="text" id="invit_url" value="{$inviturl}"/><input type="button" value="复制链接" class="btn" onclick="copyCode('invit_url')"/>
			<script type="text/javascript"> 
			function copyCode(id){ 
				var testCode=document.getElementById(id).value; 
				if(copy2Clipboard(testCode)!=false){ 
					msgDalog("生成的代码已经复制到粘贴板，你可以使用Ctrl+V 贴到需要的地方去了哦！如果复制失败，请直接复制链接粘贴即可 "); 
				} 
			} 
			copy2Clipboard=function(txt){ 
				if(window.clipboardData){ 
					window.clipboardData.clearData(); 
					window.clipboardData.setData("Text",txt); 
				} 
				else if(navigator.userAgent.indexOf("Opera")!=-1){ 
					window.location=txt; 
				} 
				else if(window.netscape){ 
					try{ 
						netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
					} 
					catch(e){ 
						msgDalog("火狐浏览器不支持，请用IE浏览器"); 
						return false; 
					} 
					var clip=Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); 
					if(!clip)return; 
					var trans=Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); 
					if(!trans)return; 
					trans.addDataFlavor('text/unicode'); 
					var str=new Object(); 
					var len=new Object(); 
					var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); 
					var copytext=txt;str.data=copytext; 
					trans.setTransferData("text/unicode",str,copytext.length*2); 
					var clipid=Components.interfaces.nsIClipboard; 
					if(!clip)return false; 
					clip.setData(trans,null,clipid.kGlobalClipboard); 
				} 
			} 
			</script> 

			<p class="invit_des">你可以通过邀请朋友来扩大您的投资人脉，交流投资心得<br/>可以将邀请链接发送给朋友，或者分享到新浪微博、腾讯微博、QQ群、人人网、开心网等社交平台，邀请朋友注册。</p>
		</div><br/>
		<p class="invit_tit">好友邀请列表</p>
		<table class="items table table-striped table-bordered table-condensed">
		<thead>
		<tr>
		<th>好友用户名</th><th>好友注册时间</th><th>好友实名认证</th><th>好友手机认证</th><th width="20%">好友邮箱认证</th></tr>
		</thead>
		<tbody>
		<volist name="list" id="vo" empty="$empty">
		<tr>
		<td>{$vo.username|default='无'}</td><td>{$vo.addtime|default='无'}</td><td><eq name="vo.chkReal" value="0">未认证<else/>已认证</eq></td><td><eq name="vo.chkMoble" value="0">未认证<else/>已认证</eq></td><td><eq name="vo.chkEmail" value="0">未认证<else/>已认证</eq></td></tr>
		</volist>
		</tbody>
		</table>
	</div>
  </div>
</div>
</div>
<!--尾部-->
<include file="./Tpl/Home/footer.html" />
<!-- footer -->

<div class="modal hide fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>

<!--[if IE 6]><script src="/js/ie-6.js"></script><![endif]-->
<script type="text/javascript" src="/Public/Home/js/jquery.SuperSlide.js"></script>
<script type="text/javascript" src="/Public/Home/js/slideTxtBox.js"></script>
<script type="text/javascript" src="/Public/Home/js/bootbox.js"></script>
<script type="text/javascript" src="/Public/Home/js/box.js"></script>
<script type="text/javascript" src="/Public/Home/js/lang.js"></script>
<script type="text/javascript" src="/Public/Home/js/responseHandler.js"></script>
<script type="text/javascript" src="/Public/Home/js/jquery.yiigridview.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
jQuery(function($) {
jQuery('body').popover({'selector':'a[rel=popover]'});
jQuery('#order-grid').yiiGridView({'ajaxUpdate':['order-grid'],'ajaxVar':'ajax','pagerClass':'pagination','loadingClass':'grid-view-loading','filterClass':'filters','tableClass':'items table table-striped table-bordered table-condensed','selectableRows':1,'enableHistory':false,'updateSelector':'{page}, {sort}','filterSelector':'{filter}','pageVar':'CurrencyTransaction_page'});
});
/*]]>*/
</script>


</body></html>